home *** CD-ROM | disk | FTP | other *** search
- /**************************************************************************
- * RSCSXTYP.C - Set extended object types within a tree.
- *************************************************************************/
-
- #include "gemfintl.h"
-
- #ifdef GEMFAST_PROTOS
- void rsc_sxtypes(OBJECT *thetree, short thisobj, short thistype, ...)
- #else
- void rsc_sxtypes(thetree, thisobj, thistype)
- OBJECT *thetree;
- short thisobj;
- short thistype;
- #endif
- {
- register OBJECT *ptree;
- va_list args;
-
- ptree = thetree;
- va_start(args, thistype);
- while (thisobj >= 0) {
- ptree[thisobj].ob_type = (thistype << 8) | (ptree[thisobj].ob_type & 0x00FF);
- thisobj = va_arg(args, short);
- thistype = va_arg(args, short);
- }
- va_end(args);
- }
-